package com.yjc.myRule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author shkstart
 * @create 2022-07-22 22:22
 */
@Configuration
public class MySelfRule {

    @Bean
    public IRule iRule() {
        return new RandomRule();
    }

}
